<%@ page import="bog.Course" %>



<div class="fieldcontain ${hasErrors(bean: courseInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="course.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${courseInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: courseInstance, field: 'fullName', 'error')} required">
	<label for="fullName">
		<g:message code="course.fullName.label" default="Full Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="fullName" required="" value="${courseInstance?.fullName}"/>
</div>

%{--<div class="fieldcontain ${hasErrors(bean: courseInstance, field: 'threads', 'error')} ">--}%
	%{--<label for="threads">--}%
		%{--<g:message code="course.threads.label" default="Threads" />--}%
		%{----}%
	%{--</label>--}%
	%{----}%
%{--<ul class="one-to-many">--}%
%{--<g:each in="${courseInstance?.threads?}" var="t">--}%
    %{--<li><g:link controller="thread" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>--}%
%{--</g:each>--}%
%{--<li class="add">--}%
%{--<g:link controller="thread" action="create" params="['course.id': courseInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'thread.label', default: 'Thread')])}</g:link>--}%
%{--</li>--}%
%{--</ul>--}%

%{--</div>--}%

